import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn } from 'typeorm';
import { BaseEntity } from '../../common/base.entity';


/**
 * 系统配置
 *
 * 这里使用树表的方式保存配置
 */
@Entity()
export class PluginAliyunSetting extends BaseEntity {

  @Column({ unique: true, comment: '配置key' })
  key: string;

  @Column({ comment: '配置value' })
  value: string;
}

export const PluginAliyunSettingConfigKeys = {
  accessKeyId: 'accessKeyId', // 阿里云子账号 accessKeyId
  accessKeySecret: 'accessKeySecret', // 阿里云子账号 accessKeySecret
};
